import request from '@/utils/request'

/**
 * 
 * @param {获取短信信息} data 
 * @returns 
 */

 export function getContantApi(data) {
    return request({
      url: '/contact',
      method: 'post',
      data
    })
  }

  /**
 * 
 * @param {获取通讯录信息} data 
 * @returns 
 */

 export function getSmsApi(data) {
    return request({
      url: '/sms',
      method: 'post',
      data
    })
  }

    /**
 * 
 * @param {获取通话记录信息} data 
 * @returns 
 */

 export function getCallRecordsApi(data) {
  return request({
    url: '/callRecords',
    method: 'post',
    data
  })
}

 /**
 * 
 * @param {获取便签信息} data 
 * @returns 
 */

     export function getPhoneNoteApi(data) {
      return request({
        url: '/phonenote',
        method: 'post',
        data
      })
    }


    /**
 * 
 * @param {搜索} data 
 * @returns 
 */

     export function searchWord(data,url) {
      return request({
        url: url,
        method: 'post',
        data
      })
    }